package com.tcode.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tcode.provider.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2019-10-23
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select uname from user where name=#{name}")
    public User getByName(String name);

    @Update("update user set img=#{filePath} where uname=#{name} ")
    public int insertImg(String filePath,String name);
}
